package cn.xd.base.application.assembler;

import cn.xd.base.application.dto.GlobalAppUserDetailDTO;
import cn.xd.base.domain.entity.GlobalAppUser;
import cn.xd.base.persistence.dos.GlobalAppUserDO;
import cn.xd.core.converter.Converter;
import cn.xd.core.converter.ReferenceMapper;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper(uses = ReferenceMapper.class)
public interface GlobalAppUserDetailDTOAssembler extends Converter<GlobalAppUserDetailDTO, GlobalAppUserDO> {

    GlobalAppUserDetailDTOAssembler INSTANCE = Mappers.getMapper(GlobalAppUserDetailDTOAssembler.class);

    GlobalAppUserDetailDTO fromDataToGeneral(GlobalAppUser aggregate);
}
